import { createRouter, createWebHistory } from 'vue-router'
const Home = () => import('../views/Home.vue')

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/profile/:id',
    name: 'Profile',
    component: function () {
      return import(/* webpackChunkName: "profile" */ '../views/Profile.vue')
    }
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router
